package com.guit.hrms.dto.recuitmentDTO;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddPositions {
    @NotNull(message = "planType不能为空")
    private Integer planType;
    @NotNull(message = "planId不能为空")
    private Integer planId;
    @NotEmpty(message = "depts不能为空")
    @Valid
    private List<ALOfEDNDTO> depts;
}
